![]() |
PATH![]() |
![]() ![]() |
Duplicate is an application command that copies one or more objects and inserts them either at a location specified in the command or at the location following the copied object or objects.
The following example tells the Finder to duplicate a file from the startup disk to a folder on the startup disk. If a file with the same name already exists, it is not replaced.
tell application "Finder"
duplicate first file of startup disk ¬
to first folder of startup disk replacing no
end tell